#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QToolBar>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QToolBar *toolbar = new QToolBar(this);
    this->addToolBar(toolbar);

    QPixmap pix1(":/2.png");
    QPixmap pix2(":/3.png");
    QIcon icon1(pix1);
    QIcon icon2(pix2);

    QAction *action1 = new QAction();
    QAction *action2 = new QAction();
    toolbar->addAction(action1);
    toolbar->addAction(action2);
    action1->setIcon(icon1);
    action2->setIcon(icon2);
    action1->setToolTip("运行");
    action2->setToolTip("查找");
}

MainWindow::~MainWindow()
{
    delete ui;
}
